package com.book.app.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;


@SuppressWarnings("serial")
@Data
@ApiModel
public class Category implements Serializable {
    @ApiModelProperty(hidden = true)
    @TableId
    private Integer cateid;
    @ApiModelProperty(value = "图书类别名称",required = true,dataType = "string",example = "科幻类")
    private String catename;
    @ApiModelProperty(hidden = true)
    @TableLogic   //标识删除标记
    private Integer deleted;
    @ApiModelProperty(hidden = true)
    private String createtime;
    @ApiModelProperty(hidden = true)
    private String modifytime;
    //记录统计数量
    @TableField(exist = false)
    private Integer counter;
}

